package com.youi.entity;

import java.util.Date;

import com.youi.common.DelStatus;

import java.sql.*;


import java.io.Serializable;


/**
 * 商家图库
 * @author XJY
 */
public class Merchantimgs implements Serializable {

	private Long id;							//ID
	private Date gmtCreated;					//创建时间
	private Integer delStatus;					//删除状态（0否 1是）
	private Date gmtModify;					    //最后修改时间
	private Long merchantId;				    //商家id
	private Integer type;					    //类型(0商家logo)
	private String img;							//图片

    public Merchantimgs(){

    }

    public Merchantimgs(Long id,Date gmtCreated,Integer delStatus,Date gmtModify) {
       this.id=id;
       this.gmtCreated=gmtCreated;
       this.delStatus=delStatus;
       this.gmtModify=gmtModify;
    }


    public Merchantimgs(Long merchantId,Integer type,String img) {
       this.gmtCreated=new Date();
       this.delStatus=DelStatus.NODEL;
       this.gmtModify=gmtCreated;
       this.merchantId=merchantId;
       this.type=type;
       this.img=img;
    }


	public void setId(Long id){
		this.id=id;
	}

	public Long getId(){
		return id;
	}

	public void setGmtCreated(Date gmtCreated){
		this.gmtCreated=gmtCreated;
	}

	public Date getGmtCreated(){
		return gmtCreated;
	}

	public void setDelStatus(Integer delStatus){
		this.delStatus=delStatus;
	}

	public Integer getDelStatus(){
		return delStatus;
	}

	public void setGmtModify(Date gmtModify){
		this.gmtModify=gmtModify;
	}

	public Date getGmtModify(){
		return gmtModify;
	}

	public void setMerchantId(Long merchantId){
		this.merchantId=merchantId;
	}

	public Long getMerchantId(){
		return merchantId;
	}

	public void setType(Integer type){
		this.type=type;
	}

	public Integer getType(){
		return type;
	}

	public void setImg(String img){
		this.img=img;
	}

	public String getImg(){
		return img;
	}

}
